package com.itheima.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
//@Component
public class Aspect2 {

//    @Pointcut("execution(public com.itheima.pojo.Emp com.itheima.service.impl.EmpServiceImpl.queryById(java.lang.Integer))")
@Pointcut("execution(* com.itheima.service.*.*(..))")
    public void pt(){}

    @Before("pt()")
    public void executionTest(){
        log.info("---------Aspect2 executionTest-------------------");
    }

}
